﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NLBS.Entity
{
   public class Flag
    {

       public Flag(string strFlags)
       {
           _basic = int.Parse(strFlags.Substring(0, 1));
           _autoUrl = int.Parse(strFlags.Substring(1, 1));
           _image = int.Parse(strFlags.Substring(2, 1));
           _media = int.Parse(strFlags.Substring(3, 1));
           _smiles = int.Parse(strFlags.Substring(4, 1));
           _textblock = int.Parse(strFlags.Substring(5, 1));
       }

        //Default "111111" bBasic, bAutoURL, bImage, bMedia, bSmilies, bTextBlock

        private int _basic;

        public int BasicFlag
        {
            get { return _basic; }
            set { _basic = value; }
        }

        private int _autoUrl;

        public int AutoUrlFlag
        {
            get { return _autoUrl; }
            set { _autoUrl = value; }
        }

        private int _image;

        public int ImageFlag
        {
            get { return _image; }
            set { _image = value; }
        }

        private int _media;

        public int MediaFlag
        {
            get { return _media; }
            set { _media = value; }
        }

        private int _smiles;

        public int SmileFlag
        {
            get { return _smiles; }
            set { _smiles = value; }
        }

        private int _textblock;

        public int TextBlockFlag
        {
            get { return _textblock; }
            set { _textblock = value; }
        }
    }
}
